package com.chen.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Role {
    private Integer roleId; //角色id
    private String roleCode; //角色编码
    private String roleName; //角色名称
    private String remark;//角色描述
    private Integer createdBy; //创建者
    @JsonFormat(pattern="yyyy-MM-dd", timezone="Europe/Zagreb")
    private Date creationDate; //创建时间

    public Role() {
    }

    public Role(Integer roleId, String roleCode, String roleName, String remark, Integer createdBy, Date creationDate) {
        this.roleId = roleId;
        this.roleCode = roleCode;
        this.roleName = roleName;
        this.remark = remark;
        this.createdBy = createdBy;
        this.creationDate = creationDate;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleCode='" + roleCode + '\'' +
                ", roleName='" + roleName + '\'' +
                ", remark='" + remark + '\'' +
                ", createdBy=" + createdBy +
                ", creationDate=" + creationDate +
                '}';
    }
}
